package org.iabako.client.user;

import org.iabako.client.ui.layout.widget.user.balanceaccount.BalanceAccount;
import org.iabako.client.ui.layout.widget.user.notification.NotificationsPanel;
import org.iabako.client.ui.layout.widget.user.tracking.TrackingPanel;
import org.iabako.shared.entity.user.User;

/**
 * Created by jose on 24/09/14.
 */
public class AuthenticateUserProvider {

    private static User user;
    private static BalanceAccount balanceAccount;
    private static NotificationsPanel notificationPanel;
    private static TrackingPanel trackingPanel;

    public static void init(User u) {
        user = u;
    }

    public static User getUser() {
        return user;
    }

    public static void setUser(User user) {
        AuthenticateUserProvider.user = user;
    }

    public static BalanceAccount getBalanceAccount() {
        return balanceAccount;
    }

    public static void setBalanceAccount(BalanceAccount balanceAccount) {
        AuthenticateUserProvider.balanceAccount = balanceAccount;
    }

    public static void setNotificationsPanel(NotificationsPanel notificationPanel) {
        AuthenticateUserProvider.notificationPanel = notificationPanel;
    }

    public static NotificationsPanel getNotificationPanel() {
        return notificationPanel;
    }

    public static void setTrackingPanel(TrackingPanel trackingPanel) {
        AuthenticateUserProvider.trackingPanel = trackingPanel;
    }

    public static TrackingPanel getTrackingPanel() {
        return trackingPanel;
    }
}
